package com.minelx.sequence.pattern;

import com.minelx.sequence.core.ReturnMatcher;
import com.minelx.sequence.core.StringScanner;

public class VariablePatternParserFactory implements IVariablePatternParserFactory {
	private final VariableSettingFactory variableSettingFactory;

	public VariablePatternParserFactory(VariableSettingFactory variableSettingFactory) {
		this.variableSettingFactory = variableSettingFactory;
	}

	@Override
	public ReturnMatcher<ReturnMatcher<?, StringScanner>, StringScanner> createVariablePatternParser(PatternParser patternParser) {
		return new VariablePatternParser(variableSettingFactory, patternParser);
	}
}
